//package com.haikesi.config;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
//import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
//
///**
// * @ClassName ActuatorWebSecurityConfigurationAdapter
// * @Author HandsomeBugs
// * @Date 2019/5/17 11:13
// * @Version 1.0
// **/
//@Configuration
//@EnableWebSecurity
//public class ActuatorWebSecurityConfigurationAdapter extends WebSecurityConfigurerAdapter {
//    @Override
//    protected void configure(HttpSecurity http) throws Exception {
//        http
//                .authorizeRequests()
//                //普通的接口不需要校验
//                .antMatchers("/api/**").permitAll()
//                // swagger页面需要添加登录校验
//                .antMatchers("/swagger-ui.html").authenticated()
//                .antMatchers("/doc.html").authenticated()
//                .antMatchers("/**/swagger-ui.html").authenticated()
//                .antMatchers("/**/doc.html").authenticated()
//                .and()
//                .formLogin();
//    }
//}
